package com.example.demo.hellospringboot;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ChenYongHao
 * @date 2023/3/2 14:59
 * @desc
 */
@Controller
public class ThymeleafController {

    @RequestMapping("/test")
    public String test(Model model) {
        model.addAttribute("msg", "hello,springboot!!!");
        return "tyTest";
    }


}
